class PeopleGame extends egret.Sprite{
	public people:egret.MovieClip;//人物
	
	public constructor() {
		super();
		this.addEventListener(egret.Event.ADDED_TO_STAGE,this.init,this);
	};
	// 初始化
	private init(){
		// 人物
		var dataUrl = RES.getRes("daoshi_json");	
	
		var text:egret.Texture = RES.getRes("daoshi_png");
	
		var daoshi:egret.MovieClipDataFactory = new egret.MovieClipDataFactory( dataUrl, text );
	
		this.people = new egret.MovieClip( daoshi.generateMovieClipData( "daoshi" ) );
	
		this.people.x = (this.stage.stageWidth - this.people.width) / 2;
	
		this.people.y= 400;

		//阴影
		var bix:egret.Bitmap = new egret.Bitmap();
		
		bix.texture= RES.getRes("box_png");
		
		bix.width=bix.texture.textureWidth / 3.8;
		
		bix.height=bix.texture.textureHeight / 3.8;
		
		bix.x=(this.stage.stageWidth - bix.width) / 2;
		
		bix.y=430;
		
		this.addChild(bix);
		
		this.addChild(this.people);
	
		this.people.gotoAndPlay("move",-1);
		
	};
}